<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
    <%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
    <jsp:directive.page import="org.springframework.beans.factory.BeanFactory"/>
<jsp:directive.page import="org.springframework.context.support.ClassPathXmlApplicationContext"/>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<%@ include file="../pagehead.jsp"%>

<%@ include file="../pagebodystart.jsp" %>
<div id="table">

Number of inactive sources in the registry is <c:out value="${fn:length(sources)}"/>. These sources can be re-activated in the registry with ease if you contact <a href="mailto:dasregistry@sanger.ac.uk">dasregistry@sanger.ac.uk</a> but 
older sources stored here <a href="archivedSources.jsp"> Archived Sources</a> cannot and would need to be registered again if now working.
<table class="dastable">

<tbody>
<tr class="row0"><td>Source URL</td><td>Sources Description</td><td>Admin Email</td><td>Lease Date</td></tr>
<c:forEach items="${sources}" var="source" varStatus="loopStatus">
<tr class="${loopStatus.index % 2 == 0 ? 'row1' : 'row0'}">
<td><c:out value="${source.url}"/></td>
<td><c:out value="${source.description }"/></td>
<td><c:out value="${source.adminemail}"/></td>
<td><c:out value="${source.leaseDate}"/></td>
</tr>

</c:forEach>
</tbody>
</table>

</div>
<%@ include file="../sangerfooter.jsp"%>
</html>